package object;

public class Demo {
    public static void main(String[] args) {
        point p =new point(1,2);

        String str =p.toString();
        System.out.println(str);

        String s1 ="这是一个point对象;"+p;
        System.out.println(s1);
        System.out.println(p);


        point p2=new point(1,2);
        System.out.println(p==p2);
        System.out.println(p.equals(p2));
    }
}
